Xceed .NET Libraries Documentation
Xceed.Compression.Formats Assembly / Xceed.Compression.Formats Namespace / GZipHeader Class / GZipHeader Constructor / GZipHeader Constructor(Boolean,Boolean,DateTime,Byte[],String,String)
true if the data to compress has been retrieved from a text file; false otherwise.
true if the header as a checksum; false otherwise.
A System.DateTime value representing the last modification date/time.
An array containing the possible extra headers.
A string representing the header's filename.
The header's comment. Can be System.String.Empty is there is no comment.


In This Topic
    GZipHeader Constructor(Boolean,Boolean,DateTime,Byte[],String,String)
    In This Topic
    Initializes a new instance of the GZipHeader class specifying the necessary parameter values.
    Syntax
    'Declaration
     
    
    Public Function New( _
       ByVal isTextFile As Boolean, _
       ByVal hasHeaderChecksum As Boolean, _
       ByVal lastWriteDateTime As Date, _
       ByVal extraHeader() As Byte, _
       ByVal fileName As String, _
       ByVal comment As String _
    )
    'Usage
     
    
    Dim isTextFile As Boolean
    Dim hasHeaderChecksum As Boolean
    Dim lastWriteDateTime As Date
    Dim extraHeader() As Byte
    Dim fileName As String
    Dim comment As String
     
    Dim instance As New GZipHeader(isTextFile, hasHeaderChecksum, lastWriteDateTime, extraHeader, fileName, comment)

    Parameters

    isTextFile
    true if the data to compress has been retrieved from a text file; false otherwise.
    hasHeaderChecksum
    true if the header as a checksum; false otherwise.
    lastWriteDateTime
    A System.DateTime value representing the last modification date/time.
    extraHeader
    An array containing the possible extra headers.
    fileName
    A string representing the header's filename.
    comment
    The header's comment. Can be System.String.Empty is there is no comment.
    Supported Frameworks

    .NET: net5.0, net5.0-windows, net6.0, net6.0-macos, net6.0-windows, net7.0, net7.0-macos, net7.0-windows, net8.0, net8.0-browser, net8.0-macos, net8.0-windows, net9.0, net9.0-browser, net9.0-macos, net9.0-windows, net10.0, net10.0-browser, net10.0-macos, net10.0-windows.

    .NET Standard: netstandard2.0, netstandard2.1

    .NET Framework: net20, net35, net40, net403, net45, net451, net452, net46, net461, net462, net463, net47, net471, net472, net48, net481.

    See Also